﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace MicroBenchmarks.DataStructures
{
    public class ArrayListWrapper
    {
        private ArrayList listobj;

        public ArrayListWrapper()
        {
            listobj = new ArrayList();
        }

        public void Add(int i)
        {
            listobj.Add(i);
        }

        public void Remove(int i)
        {
            listobj.Remove(i);
        }

        public void AddRange(ArrayList anotherlist)
        {
            listobj.AddRange(anotherlist);
        }

        public void RemoveRange(int index, int count)
        {
            listobj.RemoveRange(index, count);            
        }

        public void Insert(int pos, int i)
        {
            listobj.Insert(pos, i);
        }

        public void InsertRange(int pos, ArrayList anotherlist)
        {
            listobj.InsertRange(pos, anotherlist);
        }

        public bool Contains(int i)
        {
            return listobj.Contains(i);
        }

        public int Count
        {
            get
            {
                return listobj.Count;
            }
        }
    }
}
